package com.liveneo.adapter.webservice.server.claim;

import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;

import com.liveneo.adapter.webservice.server.claim.model.BaseClaimResponse;
import com.liveneo.adapter.webservice.server.claim.service.CaseInfoCxfService;

/**
  * @Description: TODO
  * @author liveneo-shuqw
  * @date 2016年6月21日 上午9:41:51
  * Copyright: Copyright (c) 2016 
  * Company: 北京朗泰
  * @version 3.0
  */
public class Test {

	
	public static void main(String[] args) {
		JaxWsProxyFactoryBean webService = new JaxWsProxyFactoryBean();  
         webService.setServiceClass(CaseInfoCxfService.class);  
         webService.setAddress("http://172.19.5.240:8089/adapter/services/caseInfoService?wsdl");  
         CaseInfoCxfService caseInfoCxfService = (CaseInfoCxfService) webService.create();  
//         EndInfoRequest request = new EndInfoRequest();
//         request.setCaseNo("11");
//         request.setLossId("22");
         
         
         BaseClaimResponse  br =  caseInfoCxfService.endInfo(null);
         System.out.println(br.getErrMsg());
//         System.out.println(caseInfoCxfService.cancelInfo(rq));
	}

}
